package com.snopy.controller;

import com.snopy.utils.DateUtil;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author snopy
 * @version 1.0.0
 * @classname TaskJob
 * @description
 * @email 77912204@qq.com
 * @date 2020/10/14 23:22
 */
@Component
public class TaskJob {
    public static final String taskUrl = "";
    @Scheduled(cron="0/3 * * * * ?")
    public  void autoCloseOrder(){

        System.out.println("执行定时任务，当前时间为："
                + DateUtil.getCurrentDateString(DateUtil.DATETIME_PATTERN));
    }
}
